import { _decorator, Component, Node, Animation } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('guideFinger')
export class guideFinger extends Component {

    private _anima: Animation;

    onLoad() {
        this._anima = this.getComponent(Animation);
    }

    public activeAnima(isShow: boolean) {
        if (isShow) {
            this._anima.play();
        } else {
            this._anima.stop();
            this.node.setScale(1, 1, 1);
        }
    }

    public activeFinger(isShow: boolean) {
        this.node.active = isShow;
    }

}


